package fallon;

import java.util.StringTokenizer;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;

import com.adxon.MsgException;
import com.adxon.cookie.Kooky;

public class Privacy extends Kooky{
	public double a;
	public String c;
	public double d;
	public double e;
	public char g;
	public double h;
	public String n;
	public double w;

	public Privacy(){
		idx="i";
	}
	@Override
	public void set(HttpServletRequest req,Cookie src)throws MsgException{
		super.set(req,src);
		try{
			StringTokenizer t=new StringTokenizer(src.getValue(),"*");
			String i=t.nextToken();
			a=Double.parseDouble(i);
			c=t.nextToken();
			i=t.nextToken();
			d=Double.parseDouble(i);
			i=t.nextToken();
			e=Double.parseDouble(i);
			g=t.nextToken().charAt(0);
			i=t.nextToken();
			h=Double.parseDouble(i);
			n=t.nextToken();
			i=t.nextToken();
			w=Double.parseDouble(i);
/*			System.out.println("a: "+a);
			System.out.println("c: "+c);
			System.out.println("d: "+d);
			System.out.println("e: "+e);
			System.out.println("g: "+g);
			System.out.println("h: "+h);
			System.out.println("n: "+n);
			System.out.println("w: "+w+'\n');
*/		}catch(Exception e){
			e.printStackTrace();
		}
	}
}